<?php
/**
 * Copyright (c) 2006-2008, Julien PORTALIER
 * http://featherphp.googlecode.com/
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 */
# gzip
ob_start('ob_gzhandler');

# file
$filepath = preg_replace(':^/:', '', $_GET['url']);
if (!file_exists($filepath))
{
	header("HTTP/1.0 404 Not Found");
	exit;
}

# content-type
header('Content-Type: text/css');

# browser & proxy caches
header("Expires: ".gmdate("D, j M Y H:i:s", time() + 3600*2)." GMT");
header("Cache-Control: cache"); // HTTP/1.1
header("Pragma: cache"); // HTTP/1.0

# content
readfile($filepath);
?>